﻿using BCCommon.TMS.Insured;
using System.ComponentModel.DataAnnotations;

namespace BCDto.TMS.InsuredConfig
{
    /// <summary>
    /// 保价配置请求信息模型
    /// </summary>
    public class InsuredConfigRequestDto
    {
        /// <summary>
        /// 保价类型(普通、高额)
        /// </summary>
        [Display(Name = "保价类型(普通、高额)")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public InsuredType InsuredType { get; set; }

        /// <summary>
        /// 车辆运输业务配置
        /// </summary>
        [Display(Name = "车辆运输业务配置")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public int VehicleTransportBusinessConfigId { get; set; }

        /// <summary>
        /// 最小金额
        /// </summary>
        [Display(Name = "最小金额")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public decimal MinAmount { get; set; }

        /// <summary>
        /// 最大金额
        /// </summary>
        [Display(Name = "最大金额")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public decimal MaxAmount { get; set; }

        /// <summary>
        /// 保价费率
        /// </summary>
        [Display(Name = "保价费率")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public decimal InsuredFeeRatio { get; set; }
    }
}
